#!/usr/bin/python
# -*- coding: UTF-8 -*-
"""
@author:吹神
@file:administrator_api.py
@time:2021/04/27
"""
from config.settings import ADMIN_TOKEN
from utils.base_request import mi_request


def administrator_list():
    url = "http://192.168.0.105:8000/system-service/admin/selectAdminList"
    data = {
        "data": {
            "endTime": "",
            "id": "",
            "locked": 0,
            "mobile": "",
            "nickName": "",
            "roleId": "",
            "startTime": ""
        },
        "number": 1,
        "pageSize": 10
    }
    res = mi_request("post", url, headers={"Authorization": ADMIN_TOKEN}, json=data)
    print(res.json())

if __name__ == '__main__':
    administrator_list()